<script type="text/javascript">
$(function () {
	var url = '${contextPath}script/sys/user.js';
	$.ajax({url:url, dataType:'script', cache:true,
		success: function(){
			var page = sys_fill_parm('queryUserForm');
			queryUser_user(page);
		}
	});
	$('#queryUserForm').find("input:checkbox, input:radio").not('input.ibtn').uniform();
});
</script>

<#import "/freemarker/modeltype.ftl" as mt>
<#import "/freemarker/modeltype_entity.ftl" as mte>

<form id="queryUserForm">
	<table class="search_term_table">
		<tr><th style="width: 60px;">是&nbsp;否&nbsp;屏&nbsp;蔽</th>
			<td style="width: 100px;"><@mt.YesOrNo r=true name='deleted' d=false mc=true className="formwrapper"/></td>
			<th style="width: 100px;">是&nbsp;否&nbsp;管&nbsp;理&nbsp;员</th>
			<td style="width: 200px;"><@mt.YesOrNo r=true name='isManager' d=false mc=true className="formwrapper"/></td>
			<td style="text-align:right;">
				<button class="btn btn-info" onclick="javascript: queryUser_user(); return false;"><i class="icon-search"></i> 查 询 </button>
				<button class="btn btn-success" onclick="javascript: sys_load_handle('user-edit'); return false;"><i class="icon-file"></i> 添 加 </button>
			</td>
		</tr>
		<tr><th style="width:60px;">姓名</th>
			<td style="width:160px;"><input type="text" name="realName" class="form-control" style="width:120px;"/></td>
			<th style="width:80px;">所属机构</th>
			<td style="width:150px;">
				<div class="input-group">
					<span class="btn-group">
						<input id="on" class="form-control" type="text" readonly="readonly" size="16"  name="on" style="width:100px;">
						<input id="oc" type="hidden" name="oc" class="form-control" style="width:150px;">
						<button class="btn btn-primary" onclick="javascript: selectOrganization_user();" title="选择该用户所属机构" type="button"><i class="icon-search"></i></button>
						<button class="btn btn-danger" onclick="javascript: $('#oc').val(''); $('#on').val('');" title="去除机构查询条件" type="button"><i class="icon-remove"></i></button>
					</span>
				</div>
			</td>
		</tr>
	</table>
</form>
<div id="userResultList"></div>
